package com.yumeko.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * (TPayment)表控制层
 *
 * @author Zheng Hao
 * @since 2020-03-07 23:28:21
 */
@RestController
@Slf4j
public class TPaymentController {

    @Value("${server.port}")
    private String serverport;
    /**
     *@Description:
     *@Param: [id]
     *@return: com.yumeko.springcloud.util.ResponseData
     *@Author: Zheng Hao
     *@date: 2020/3/7
     */
    @RequestMapping("/payment/consul")
    public String paymentConsul() {
        return "springcloud with consul:"+serverport+"\t"+ UUID.randomUUID().toString();
    }

}